from django.conf.urls import url

from apps.organizations.views import *

urlpatterns = [
    # 机构
    url(r'^list/$', OrgView.as_view(), name="list"),
    url(r'^(?P<org_id>\d+)/$', OrgHomePageView.as_view(), name="home"),
    url(r'^(?P<org_id>\d+)/teacher/$', OrgTeacherView.as_view(), name="teacher"),
    url(r'^(?P<org_id>\d+)/course/$', OrgCourseView.as_view(), name="course"),
    url(r'^(?P<org_id>\d+)/desc/$', OrgDescView.as_view(), name="desc"),
    # 讲师
    url(r'^teacher_list/$', TeacherListView.as_view(), name="teacher_list"),
    url(r'^teacher_list/(?P<teacher_id>\d+)/$', TeacherDetailView.as_view(), name="teacher_detail"),

]
